package com.zjitc.chapter09.dao;

import com.zjitc.chapter09.domain.Account;

import java.math.BigDecimal;
import java.util.List;

public interface AccountDao {
    public int addAccount(Account account);
    public int updateAccount(Account account);
    public int deleteAccount(int id);
    Account findAccountById(int id);
    List<Account> findAllAccount();
    void transfer(String sourceName, String targetName, BigDecimal money);
    void transfer2(String sourceName, String targetName, BigDecimal money);
}
